package generator

import "crypto/rand"

// RandomBytes 生成一个长度为n的随机数组
func RandomBytes(n int) (ret []byte) {
	ret = make([]byte, n)
	_, _ = rand.Read(ret)
	return
}
